package org.oliver.crp.samtrack.client.ui.widgets;

import com.google.gwt.core.client.GWT;
import com.smartgwt.client.types.Alignment;
import com.smartgwt.client.types.Overflow;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.layout.HLayout;

public class Masthead extends HLayout{
	
	private static final int MAST_HEIGHT = 58;
	
	Label label;
	
	public Masthead() {
		super();
		
		GWT.log("init Masthead()...", null);
		
		this.addStyleName("crm-Masthead"); 
		
	    // initialise the layout container
	    this.setHeight(MAST_HEIGHT);
	    this.setBackgroundColor("#C3D9FF");  
		
	    // initialise the masthead label
	    label = new Label(); 
	    label.setStyleName("crm-MastHead-Name");
	    label.setContents("CRP-Sante Immunology Sample Tracking V0.1");  
	    label.setAlign(Alignment.CENTER);  
	    label.setOverflow(Overflow.HIDDEN);  
		    
	    // add the label to the layout container
	    this.addMember(label); 		
	}

}
